#define _CRT_SECURE_NO_WARNINGS 1
#include"SList.h"

void SListTest1()
{
	SLTNode* plist = NULL;
	SLTPushBack(&plist, 1);
	SLTPushBack(&plist, 2);
	SLTPushBack(&plist, 3);
	SLTPushBack(&plist, 4);

	SLTPushFront(&plist, -1);
	SLTPushFront(&plist, -2);
	SLTPushFront(&plist, -3);
	SLTPushFront(&plist, -4);

	SLTPopBack(&plist);
	SLTPopFront(&plist);

	SLTPrint(plist);

}

void SListTest2()
{
	SLTNode* plist = NULL;
	SLTPushBack(&plist, 20);
	SLTInsert(&plist, 1,2);


	SLTPrint(plist);
	SLTDestroy(&plist);
}

int main()
{
	//SListTest1();
	SListTest2();
	return 0;
}